import { createPinia } from 'pinia';
import piniaPluginPersist from 'pinia-plugin-persistedstate';

const store = createPinia();
store.use(piniaPluginPersist);

export default store;

export interface storeOptions {
	dict: Record<string, any>;
	user: Record<string, any>;
	com: Record<string, any>;
	guarder: Record<string, any>;
}

export const $store: storeOptions = { dict: {}, user: {}, com: {}, guarder: {} };
